Featured Results

Use the FeaturedResults control to easily promote important pages. The FeaturedResults control is independent in behavior from SearchResults, so any keywords can be hard-wired to featured documents. The control is templated, allowing complete customization of layout, see below.

Example Code

<SearchEngine:FeaturedResults id="FeaturedResults1" runat="server"
FeaturedDocuments="http://www.amazon.com/gp/product/0451527747|Buy Alice's
Adventures In Wonderland|Get this classic book now from Amazon|alice, adventure,
wonderland||http://www.amazon.com/gp/product/0141439491|Buy Gulliver's
Travels|The classic, Gulliver's Travels|gulliver, travels, adventure||http://
www.keyoti.com/support|Support Forum|Visit the Keyoti support forum|support,
help, question">
    <FeaturedHeaderTemplate>
        <div style='font-weight: bold;font-family: sans-serif, Verdana,
Arial, Helvetica; font-size:12pt; border-bottom: 1px solid #EEEEEE;
padding:3px;'>Featured results:</div>
        <br>
    </FeaturedHeaderTemplate>
    <FeaturedResultTemplate>
        <div><table border="0"> <tr>
            <td style='font-family:sans-serif, Verdana, Arial, Helvetica;
font-size:12pt;'>
        <A style='font-family:sans-serif, Verdana, Arial, Helvetica; fontsize:
12pt;' href="<%# Container.Uri %>" target="newWin"><%# Container.Title %></A>
            </td>
        </tr>
        <tr>
        <td style='font-family:sans-serif, Verdana, Arial, Helvetica; fontsize:
9pt; '><%# Container.Summary%></td>
        </tr>
    </table>
    </div>
    <br>
    </FeaturedResultTemplate>
    </SearchEngine:FeaturedResults>

In this example two templates are specified for the header and each result item (if they are not specified, default templates are used). The FeaturedDocuments property is easiest set through the Visual Studio property editor, and is persisted as; URL|Title|Summary|Keywords||URL2|.....